-- GENERATED SPELL FOR [Syndicate Thief] --


function spell0_2241(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(7159,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2241', 554, 1)
end

function spell1_2241(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2241', 5332, 1)
end

function spell2_2241(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2241', 30000, 1)
end

function Sorts_2241(pUnit, Event)
local choix_sorts_2241 = math.random(0, 2)
if choix_sorts_2241 == 0 then
pUnit:RegisterEvent('spell0_2241', 1, 1)
end
if choix_sorts_2241 == 1 then
pUnit:RegisterEvent('spell1_2241', 1, 1)
end
if choix_sorts_2241 == 2 then
pUnit:RegisterEvent('spell2_2241', 1, 1)
end
end

function mob2241_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2241', math.random(1500, 3000), 1)
end

function mob2241_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2241_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2241_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2241, 1, 'mob2241_Action')
RegisterUnitEvent(2241, 2, 'mob2241_Leave')
RegisterUnitEvent(2241, 3, 'mob2241_Kill')
RegisterUnitEvent(2241, 4, 'mob2241_Die')
